package org.misalen.web.database.model.mysql.pro;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.misalen.annotations.Enumeration;
import org.misalen.annotations.ModelComment;
import org.misalen.web.database.model.mysql.BaseSqlModel;

/**
 * 短信验证码记录
 * 
 * @author guochao
 *
 */
@Entity
@Table(name = "ProSmsCode")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ProSmsCode extends BaseSqlModel {

	@ModelComment("手机号")
	@Column(name = "mobile", length = 50, nullable = false)
	private String mobile;
	@ModelComment("验证码")
	@Column(name = "code", length = 50, nullable = false)
	private String code;
	@ModelComment("发送结果")
	@Column(name = "isSuccess", length = 10, nullable = false)
	private String isSuccess;
	@ModelComment("类型")
	@Column(name = "type", length = 50, nullable = false)
	@Enumeration("pro-sms-type")
	private String type;

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(String isSuccess) {
		this.isSuccess = isSuccess;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
